package com.pms.servlet;

import java.io.IOException;
import java.util.List;


import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.pms.entity.Folder;
import com.pms.entity.Project;
import com.pms.entity.Users;
import com.pms.service.FdService;
import com.pms.util.GetSession;

public class FileServlet extends HttpServlet {


	private static final long serialVersionUID = 1L;

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

		request.setCharacterEncoding("utf-8");
		
		Project pro = (Project)GetSession.getSession(request).getAttribute("pro");
		String proid=pro.getPro_id();
		System.out.println(proid);
		
		List<Folder> fdlist=new FdService().findByProid(proid);
		GetSession.getSession(request).setAttribute("fdlist", fdlist);
		
		
		request.getRequestDispatcher("/WEB-INF/file.jsp").forward(request, response);
	}

}
